<?php

require "Db.php";

$obj = new Db();

$id = $_GET['id'];

$res = $obj -> del("exam",$id);

if($res){
    header("Location:list.php");
}else{
    echo "删除失败";
}